<template>
	<view>
		<uni-group title="挂号科室">
			<uni-list>
				<uni-list-item link @click="toke(item.categoryName)" v-for="(item,index) in kelist" :title="item.categoryName"></uni-list-item>
			</uni-list>
		</uni-group>
	</view>
</template>

<script>
	import api from '../../../../commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				kelist:[]
			}
		},
		onLoad() {
			this.getkeshi()
		},
		methods: {
			toke(name){
				uni.navigateTo({
					url:'guahao?name='+name
				})
			},
			getkeshi(){
				this.$get(this.base+'/prod-api/api/hospital/category/list').then((res)=>{
					this.kelist = res.rows
				})
			}
		}
	}
</script>

<style>

</style>
